package com.edie.customview.data.net.exception;

/**
 * edie create on 2018/8/15
 */
public class ApiException extends RuntimeException {
    private int mCode;

    public ApiException() {
    }

    public ApiException(String message) {
        super(message);
    }

    public ApiException(int code, String message) {
        super(message);
        mCode = code;
    }

    @Override
    public String getMessage() {
        return super.getMessage();
    }

    public int getCode() {
        return mCode;
    }
}
